package view;

import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;

import javax.swing.JFrame;

import controller.Controller;

public class BaseView extends JFrame {

	/**
	 * 
	 */
	protected static final long serialVersionUID = 1L;

	// 必须只持有一个controller不然请求的context会不一样
	protected static Controller controller;

	public BaseView() throws KeyManagementException, NoSuchAlgorithmException {
		if (controller == null) {
			controller = new Controller();
		}
	}
}
